package com.aaa.day1104.demo2;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.stream.Stream;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年11月04日12:37
 */
public class Test1 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list,"张三","张十三","李四");

        Stream<String> stream=list.stream();

        String[] arr={"张三","张十三","李四"};
        Stream<String> s1 = Arrays.stream(arr);

        Stream<String> s2=Stream.of("张三","张十三","李四");
    }
}
